package com.xli.mis.codemain.mapper;

import com.xli.mis.codemain.entity.CodeMain;
import com.xli.mis.codemain.entity.CodeMainCache;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ICodeMainCacheMapper {

    ICodeMainCacheMapper INSTANCE = Mappers.getMapper(ICodeMainCacheMapper.class);

    CodeMainCache toCacheEntity(CodeMain codeMain);

    CodeMain toEntity(CodeMainCache codeMainCache);

    List<CodeMainCache> toCacheList(List<CodeMain> codeMainList);

    List<CodeMain> toEntityList(List<CodeMainCache> codeMainCacheList);
}
